class Animal:
    def say(self):
        print("haha")


class Dog(Animal):
    """
        用同名方法覆盖掉之前的就是重写方法
    """
    def say(self,name):
        print("请呼唤我的名字%s"%name)

my_dog = Dog()
#请呼唤我的名字king
my_dog.say("king")